#include <string>
#include <iostream>
#include <vector>
#include <fstream>
#include <sstream>

class LineChart {
public:
    LineChart();
    void setTitle(const std::string& title);
    void setXLabelName(const std::string& xName);
    void setYLabelName(const std::string& yName);
    void setLength(int length);
    void setWidth(int width);
    void addEntry(double label, double value);
    void writeAsHTML(std::ostream& out) const;
    void writeAsHTML(const std::string& file) const;
private:
    std::string m_title;
    std::vector<double> m_labels;
    std::vector<double> m_values;
    std::string m_xLabelName;
    std::string m_yLabelName;
    int m_length;
    int m_width;
};